<%@ include file="/taglib-imports.jspf" %>
	
<bean:define id="codiPartValue" name="form" property="part.codiPart"/>
<bean:define id="dataSinistreValue" name="form" property="part.dataSinistre"/>
<bean:define id="idValue" name="form" property="part.id"/>
	

<tiles:insert definition="backend.layout">
    <%@ include file="/edu/uoc/tfc/gui/parts/tancar/tancar-part-dades-javascript.jspf" %>
    <tiles:put name="body" type="string">
		<emkt:form id="partForm" type="<%=FormType.Creation%>">
			
			<h3><bean:message key="cu.tancaPart.missatge"/></h3>
			<br>
			<emkt:hiddenField
				name="part.id"
				value="<%=idValue.toString()%>"
			/>
			<emkt:textField 
				label="dto.part.codiPart" 
				name="part.codiPart" 
				value="<%=codiPartValue.toString()%>" 
				readonly="true"
			/>	
			
			<emkt:textField		
				label="dto.part.dataSinistre" 
				name="part.dataSinistre" 
				value="<%=dataSinistreValue.toString()%>" 
				readonly="true" 
			/>			
			
			<div class="form-actions">
        		<%@ include file="/edu/uoc/tfc/gui/parts/tancar/tancar-part-dades-tancar-part.jspf" %>
			</div>
		</emkt:form>
    </tiles:put>
</tiles:insert>